User Guides > PCC with Legacy Services (Proxy Server) > Integrating with Your Application > Configuring Flash Viewer Samples > Sample Code |
Sample code is included to demonstrate how integration can work. Steps for how to run the sample code are included after the code tables below.
ASP.NET Code Files
File |
Description |
App_Code folder |
Contains the supporting classes for configuration and path manipulation. |
PCC folder |
Contains the supporting classes to handle client requests and Prizm Proxy Service responses. |
Default.aspx |
Starting Point. Calls ViewerEnterprise.swf and passes Sample.doc filename. Also contains the conversion logic and calls to Prizm Proxy Service convert2swf and initiates conversion. |
Diagnostics.aspx |
Prizm environment diagnostics file. |
Error.aspx |
Error handler. |
favicon.ico |
Bookmark icon file. |
prizmconfig.xml |
Contains the settings of installation, temporary paths, and Prizm Proxy Service settings. |
Project.sln |
Microsoft Visual Studio Solution File. |
Sample.doc |
Document to be converted. |
settingsenterprise.xml |
Contains the location of conversion helper files. |
swfobject.2.2.js |
SWF Objects Javascript Library. |
ViewerEnterprise.swf |
Prizm viewer file. |
Web.config |
Web configuration file. |
PHP Code Files
File |
Description |
config.php |
Configuration setting file. |
error.php |
Error handler. |
favicon.ico |
Bookmark icon file. |
getdocument.php |
Converter result document handler. |
getfastpagecount.php |
Get Fast page count file. |
gettotalpagecount.php |
Get Total page count file. |
index.php |
Starting Point. Calls ViewerEnterprise.swf and passes Sample.doc filename. Also contains the conversion logic and calls to Prizm Proxy Service convert2swf and initiates conversion. |
license.php |
Licensing handler. |
listmarkup.php |
List markup handler. |
openmarkup.php |
Open markup handler. |
prizmconfig.xml |
Contains the settings of installation, temporary paths, and Prizm Proxy Service settings. |
Sample.doc |
Document to be converted. |
sample_config.php |
Sample configuration for prizmconfig.xml handler. |
savedocument.php |
Save document handler. |
savemarkup.php |
Save markup handler. |
settingsenterprise.xml |
Contains the location of conversion helper files. |
swfobject.2.2.js |
SWF Objects Javascript Library. |
ViewerEnterprise.swf |
Prizm viewer file. |
Debian/Ubuntu:
# cp -R /usr/share/prizm/Samples/html5/php /var/www/prizm_html5Red Hat/CentOS:
# cp -R /usr/share/prizm/Samples/html5/php /var/www/html/prizm_html5
Debian/Ubuntu:
# sudo chmod 775 /var/www/prizm_html5/temp /var/www/prizm_html5/markups
# sudo chgrp www-data /var/www/prizm_html5/temp /var/www/prizm_html5/markupsRed Hat/CentOS:
# chmod 775 /var/www/html/prizm_html5/temp /var/www/html/prizm_html5/markups
# chgrp apache /var/www/prizm_html5/temp /var/www/prizm_html5/markups